package mongodb.general.operator.mongoHelper.log;

import mongodb.general.operator.mongoHelper.common.builder.UpdateBuilder;
import mongodb.general.operator.mongoHelper.log.enums.LogTypeEnum;
import org.springframework.data.mongodb.core.query.Query;

import java.util.List;

public interface MongoLogHelper {

    public void log(Class<?> clazz, Query query, Long startTime,
                         LogTypeEnum logTypeEnum);

    public void logUpdate(Class<?> clazz, Query query,
                          UpdateBuilder updateBuilder,
                          boolean multi, Long startTime);

    public void logSave(Object object, Long startTime,
                         Boolean isInsert);
    public void logSave(List<?> list, Long startTime);
}
